from flask_cors import CORS
from flask_migrate import MigrateCommand
from flask_script import Manager

from apps import Create_app

app = Create_app()
CORS(app, resources=r'/*')
manager = Manager(app=app)
manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manager.run()
